package user;

import operation.*;

import java.util.Scanner;

public class AdminUser extends User {

    public AdminUser(String name) {
        super(name);
        this.iOperations = new IOperation[]{
                new Exit(),
                new ShowVehicle(),
                new AddVehicle(),
                new ModifyVehicle(),
                new DeleteVehicle()
        };
    }

    @Override
    public int menu() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("********** 欢迎光临腾飞汽车租赁公司 **********");
        System.out.println("hello " + this.name + "管理员");
        System.out.println("1.查看车辆！");
        System.out.println("2.增加车辆！");
        System.out.println("3.修改车辆！");
        System.out.println("4.删除车辆！");
        System.out.println("0.退出系统！");
        System.out.print("请输入你要进行的操作: ");
        return scanner.nextInt();
    }
}
